#include "IFUException.h"
#include "ImageSlice.h"

using namespace std;

ImageSlice::ImageSlice() {
  this->count = 0;
  this->data = 0;
  this->index = 0;
}

ImageSlice::ImageSlice(int count) {
  this->count = count;
  this->data = new double[count];
  this->index = 0;
}

ImageSlice::ImageSlice(int count, int index) {
  this->count = count;
  this->data = new double[count];
  this->index = index;
}

ImageSlice::ImageSlice(int count, double *data) {
  this->count = count;
  this->data = data;
  this->index = 0;
}
ImageSlice::ImageSlice(int count, double *data, int index) {
  this->count = count;
  this->data = data;
  this->index = index;
}
ImageSlice::~ImageSlice() {
  delete []data;  
}
